<?php

class Application_Model_DbTable_SystemEnum extends Zend_Db_Table_Abstract {

    protected $_name = 'enum_dictionary';
	
	public function getAll(){
        $rows = $this->fetchAll();
        return $rows;
	}
	
	public function getEnum($enumname){
		$rows = $this->fetchRow("enumname='".$enumname."'");
		return $rows;
	}

	public function getValue($enumname, $enumkey){
		$rows = $this->fetchRow("enumname='".$enumname."' and enumkey='".$enumkey."'");
		return $rows;
	}
}
